package com.mocha.bss.domain.rbac.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.coffee.mybatis.TenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;



@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(of ={"roleCode"}, callSuper = false)
@TableName("sys_role")
public class RoleEntity extends TenantEntity {

    private static final long serialVersionUID = 112312312L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("role_code")
    private String roleCode;

    @TableField("role_name")
    private String roleName;

    @TableField("description")
    private String description;

}
